[INFO] cloning repository https://github.com/rinp/euler_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rinp/euler_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frinp%2Feuler_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frinp%2Feuler_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 40e3de61ca122e89cfc7cbed6ec6eb2ea343eb48
[INFO] checking rinp/euler_rust against try#ebbfb508237d160e7a5e663a930916c87c4a8a45 for pr-106493
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frinp%2Feuler_rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/rinp/euler_rust on toolchain ebbfb508237d160e7a5e663a930916c87c4a8a45
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ebbfb508237d160e7a5e663a930916c87c4a8a45" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/rinp/euler_rust
[INFO] finished tweaking git repo https://github.com/rinp/euler_rust
[INFO] tweaked toml for git repo https://github.com/rinp/euler_rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/rinp/euler_rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ebbfb508237d160e7a5e663a930916c87c4a8a45" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:9042d5c95763f71f7b0904716b98ccadf9fc47b0f382ee962aaaed2ac70c9b8d" "/opt/rustwide/cargo-home/bin/cargo" "+ebbfb508237d160e7a5e663a930916c87c4a8a45" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0ee8a65f1f5bbdfb4ee6f44a9c1109b72a8ae78237610b2d4b502507c43fb079
[INFO] running `Command { std: "docker" "start" "-a" "0ee8a65f1f5bbdfb4ee6f44a9c1109b72a8ae78237610b2d4b502507c43fb079", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0ee8a65f1f5bbdfb4ee6f44a9c1109b72a8ae78237610b2d4b502507c43fb079", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0ee8a65f1f5bbdfb4ee6f44a9c1109b72a8ae78237610b2d4b502507c43fb079", kill_on_drop: false }`
[INFO] [stdout] 0ee8a65f1f5bbdfb4ee6f44a9c1109b72a8ae78237610b2d4b502507c43fb079
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:9042d5c95763f71f7b0904716b98ccadf9fc47b0f382ee962aaaed2ac70c9b8d" "/opt/rustwide/cargo-home/bin/cargo" "+ebbfb508237d160e7a5e663a930916c87c4a8a45" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 501446d4446d4fc955621961270cda57ee1a321d78f786121757a630e90ce830
[INFO] running `Command { std: "docker" "start" "-a" "501446d4446d4fc955621961270cda57ee1a321d78f786121757a630e90ce830", kill_on_drop: false }`
[INFO] [stderr]     Checking libc v0.2.21
[INFO] [stderr]     Checking num-traits v0.1.37
[INFO] [stderr]     Checking rustc-serialize v0.3.23
[INFO] [stderr]    Compiling semver v0.1.20
[INFO] [stderr]     Checking fnv v1.0.5
[INFO] [stderr]     Checking lazy_static v0.2.4
[INFO] [stderr]    Compiling rustc_version v0.1.7
[INFO] [stderr]     Checking rand v0.3.15
[INFO] [stderr]     Checking num_cpus v1.3.0
[INFO] [stderr]     Checking time v0.1.36
[INFO] [stderr]     Checking num-integer v0.1.33
[INFO] [stderr]    Compiling tempfile v2.1.5
[INFO] [stderr]     Checking num-iter v0.1.33
[INFO] [stderr]     Checking deque v0.3.1
[INFO] [stderr]     Checking rayon v0.6.0
[INFO] [stderr]     Checking num-bigint v0.1.37
[INFO] [stderr]     Checking num-complex v0.1.36
[INFO] [stderr]     Checking num-rational v0.1.36
[INFO] [stderr]     Checking num v0.1.37
[INFO] [stderr]     Checking euler v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/prob501_600/prob501_510/p501.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/prob501_600/prob501_510/p501.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::sync::Arc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc`
[INFO] [stdout]  --> src/prob501_600/prob501_510/p501.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::sync::mpsc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/prob501_600/prob501_510/p501.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/prob501_600/prob501_510/p501.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::sync::Arc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc`
[INFO] [stdout]  --> src/prob501_600/prob501_510/p501.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::sync::mpsc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]  --> src/prob101_200/prob101_110/p102.rs:8:61
[INFO] [stdout]   |
[INFO] [stdout] 8 |         Err(why) => panic!("couldn't open : {}  {}", Error::description(&why), why),
[INFO] [stdout]   |                                                             ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `i128_type` has been stable since 1.26.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | #![feature(i128_type)]
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/common/iter.rs:3:28
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub fn prime_iter() -> Box<Iterator<Item = u64>> {
[INFO] [stdout]   |                            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]   = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub fn prime_iter() -> Box<dyn Iterator<Item = u64>> {
[INFO] [stdout]   |                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/common/iter.rs:44:52
[INFO] [stdout]    |
[INFO] [stdout] 44 | ...                   -> Box<Iterator<Item = Vec<E>>> {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 44 |                                             -> Box<dyn Iterator<Item = Vec<E>>> {
[INFO] [stdout]    |                                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/common/iter.rs:57:54
[INFO] [stdout]    |
[INFO] [stdout] 57 | fn combination_add(length: usize, max: usize) -> Box<Iterator<Item = Vec<usize>>> {
[INFO] [stdout]    |                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 57 | fn combination_add(length: usize, max: usize) -> Box<dyn Iterator<Item = Vec<usize>>> {
[INFO] [stdout]    |                                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/common/iter.rs:65:32
[INFO] [stdout]    |
[INFO] [stdout] 65 |                       now: Box<Iterator<Item = Vec<usize>>>,
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 65 |                       now: Box<dyn Iterator<Item = Vec<usize>>>,
[INFO] [stdout]    |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/common/iter.rs:68:30
[INFO] [stdout]    |
[INFO] [stdout] 68 |                       -> Box<Iterator<Item = Vec<usize>>> {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 68 |                       -> Box<dyn Iterator<Item = Vec<usize>>> {
[INFO] [stdout]    |                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]  --> src/prob101_200/prob101_110/p102.rs:8:61
[INFO] [stdout]   |
[INFO] [stdout] 8 |         Err(why) => panic!("couldn't open : {}  {}", Error::description(&why), why),
[INFO] [stdout]   |                                                             ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `i128_type` has been stable since 1.26.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | #![feature(i128_type)]
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/common/iter.rs:3:28
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub fn prime_iter() -> Box<Iterator<Item = u64>> {
[INFO] [stdout]   |                            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]   = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub fn prime_iter() -> Box<dyn Iterator<Item = u64>> {
[INFO] [stdout]   |                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/common/iter.rs:44:52
[INFO] [stdout]    |
[INFO] [stdout] 44 | ...                   -> Box<Iterator<Item = Vec<E>>> {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 44 |                                             -> Box<dyn Iterator<Item = Vec<E>>> {
[INFO] [stdout]    |                                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/common/iter.rs:57:54
[INFO] [stdout]    |
[INFO] [stdout] 57 | fn combination_add(length: usize, max: usize) -> Box<Iterator<Item = Vec<usize>>> {
[INFO] [stdout]    |                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 57 | fn combination_add(length: usize, max: usize) -> Box<dyn Iterator<Item = Vec<usize>>> {
[INFO] [stdout]    |                                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/common/iter.rs:65:32
[INFO] [stdout]    |
[INFO] [stdout] 65 |                       now: Box<Iterator<Item = Vec<usize>>>,
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 65 |                       now: Box<dyn Iterator<Item = Vec<usize>>>,
[INFO] [stdout]    |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/common/iter.rs:68:30
[INFO] [stdout]    |
[INFO] [stdout] 68 |                       -> Box<Iterator<Item = Vec<usize>>> {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 68 |                       -> Box<dyn Iterator<Item = Vec<usize>>> {
[INFO] [stdout]    |                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/common/iter.rs:60:17
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let it: Box<Iterator<Item = Vec<usize>>> = Box::new(base_it);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let it: Box<dyn Iterator<Item = Vec<usize>>> = Box::new(base_it);
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/common/iter.rs:60:17
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let it: Box<Iterator<Item = Vec<usize>>> = Box::new(base_it);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let it: Box<dyn Iterator<Item = Vec<usize>>> = Box::new(base_it);
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return reference to temporary value
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:33:18
[INFO] [stdout]    |
[INFO] [stdout] 33 |         .map(|l| &l.unwrap().parse::<u64>().unwrap());
[INFO] [stdout]    |                  ^----------------------------------
[INFO] [stdout]    |                  ||
[INFO] [stdout]    |                  |temporary value created here
[INFO] [stdout]    |                  returns a reference to data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:47:13
[INFO] [stdout]    |
[INFO] [stdout] 47 | /             (&primes.cloned())
[INFO] [stdout] 48 | |                 .skip_while(|&b| b <= a)
[INFO] [stdout]    | |                  ----------------------^
[INFO] [stdout]    | |__________________|_____________________|
[INFO] [stdout]    |                    |                     move occurs because value has type `Cloned<std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |                    value moved due to this method call
[INFO] [stdout]    |
[INFO] [stdout] note: `skip_while` takes ownership of the receiver `self`, which moves value
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:1124:22
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ captured outer variable
[INFO] [stdout] ...
[INFO] [stdout] 44 |         .map(|a: u64| {
[INFO] [stdout]    |              -------- captured by this `FnMut` closure
[INFO] [stdout] ...
[INFO] [stdout] 47 |             (&primes.cloned())
[INFO] [stdout]    |               ^^^^^^ -------- `primes` moved due to this method call
[INFO] [stdout]    |               |
[INFO] [stdout]    |               move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `std::iter::Iterator::cloned` takes ownership of the receiver `self`, which moves `primes`
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:3279:26
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:51:13
[INFO] [stdout]    |
[INFO] [stdout] 51 | /             (&primes.cloned())
[INFO] [stdout] 52 | |                 .skip_while(|&b| b <= a)
[INFO] [stdout]    | |                  ----------------------^
[INFO] [stdout]    | |__________________|_____________________|
[INFO] [stdout]    |                    |                     move occurs because value has type `Cloned<std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |                    value moved due to this method call
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:51:15
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ captured outer variable
[INFO] [stdout] ...
[INFO] [stdout] 44 |         .map(|a: u64| {
[INFO] [stdout]    |              -------- captured by this `FnMut` closure
[INFO] [stdout] ...
[INFO] [stdout] 51 |             (&primes.cloned())
[INFO] [stdout]    |               ^^^^^^ -------- `primes` moved due to this method call
[INFO] [stdout]    |               |
[INFO] [stdout]    |               move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:66:21
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ captured outer variable
[INFO] [stdout] ...
[INFO] [stdout] 65 |                 .map(|b: u64| {
[INFO] [stdout]    |                      -------- captured by this `FnMut` closure
[INFO] [stdout] 66 |                     primes.cloned()
[INFO] [stdout]    |                     ^^^^^^ -------- `primes` moved due to this method call
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `std::iter::Iterator::cloned` takes ownership of the receiver `self`, which moves `primes`
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:3279:26
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:63:13
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ captured outer variable
[INFO] [stdout] ...
[INFO] [stdout] 60 |         .map(|a: u64| {
[INFO] [stdout]    |              -------- captured by this `FnMut` closure
[INFO] [stdout] ...
[INFO] [stdout] 63 |             primes.cloned()
[INFO] [stdout]    |             ^^^^^^ -------- `primes` moved due to this method call
[INFO] [stdout]    |             |
[INFO] [stdout]    |             move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `std::iter::Iterator::cloned` takes ownership of the receiver `self`, which moves `primes`
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:3279:26
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:65:22
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ captured outer variable
[INFO] [stdout] ...
[INFO] [stdout] 60 |         .map(|a: u64| {
[INFO] [stdout]    |              -------- captured by this `FnMut` closure
[INFO] [stdout] ...
[INFO] [stdout] 65 |                 .map(|b: u64| {
[INFO] [stdout]    |                      ^^^^^^^^ move out of `primes` occurs here
[INFO] [stdout] 66 |                     primes.cloned()
[INFO] [stdout]    |                     ------
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     variable moved due to use in closure
[INFO] [stdout]    |                     move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:38:24
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let count_1: u64 = (&primes.cloned()).take_while(|&a| a * a * a * a * a * a * a < max)
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^------------------------------------------------
[INFO] [stdout]    |                        |                  |
[INFO] [stdout]    |                        |                  value moved due to this method call
[INFO] [stdout]    |                        move occurs because value has type `Cloned<std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `take_while` takes ownership of the receiver `self`, which moves value
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:1205:22
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:43:24
[INFO] [stdout]    |
[INFO] [stdout] 43 |        let count_2: u64 = (&primes.cloned())
[INFO] [stdout]    |  _________________________^
[INFO] [stdout] 44 | |          .map(|a: u64| {
[INFO] [stdout]    | | __________-
[INFO] [stdout] 45 | ||             println!("2素数:{}", a);
[INFO] [stdout] 46 | ||
[INFO] [stdout] 47 | ||             (&primes.cloned())
[INFO] [stdout] ...  ||
[INFO] [stdout] 54 | ||                 .count() as u64
[INFO] [stdout] 55 | ||         })
[INFO] [stdout]    | ||          ^
[INFO] [stdout]    | ||__________|
[INFO] [stdout]    |  |__________move occurs because value has type `Cloned<std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |             value moved due to this method call
[INFO] [stdout]    |
[INFO] [stdout] note: `std::iter::Iterator::map` takes ownership of the receiver `self`, which moves value
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:777:18
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `primes`
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:43:26
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 38 |     let count_1: u64 = (&primes.cloned()).take_while(|&a| a * a * a * a * a * a * a < max)
[INFO] [stdout]    |                                 -------- `primes` moved due to this method call
[INFO] [stdout] ...
[INFO] [stdout] 43 |     let count_2: u64 = (&primes.cloned())
[INFO] [stdout]    |                          ^^^^^^ value used here after move
[INFO] [stdout]    |
[INFO] [stdout] note: `std::iter::Iterator::cloned` takes ownership of the receiver `self`, which moves `primes`
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:3279:26
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `primes`
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 43 |     let count_2: u64 = (&primes.cloned())
[INFO] [stdout]    |                                 -------- `primes` moved due to this method call
[INFO] [stdout] 44 |         .map(|a: u64| {
[INFO] [stdout]    |              ^^^^^^^^ value used here after move
[INFO] [stdout] ...
[INFO] [stdout] 47 |             (&primes.cloned())
[INFO] [stdout]    |               ------ use occurs due to use in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:59:24
[INFO] [stdout]    |
[INFO] [stdout] 59 |        let count_3: u64 = (&primes.cloned())
[INFO] [stdout]    |  _________________________^
[INFO] [stdout] 60 | |          .map(|a: u64| {
[INFO] [stdout]    | | __________-
[INFO] [stdout] 61 | ||             println!("3素数:{}", a);
[INFO] [stdout] 62 | ||
[INFO] [stdout] 63 | ||             primes.cloned()
[INFO] [stdout] ...  ||
[INFO] [stdout] 73 | ||                 .sum::<u64>()
[INFO] [stdout] 74 | ||         })
[INFO] [stdout]    | ||          ^
[INFO] [stdout]    | ||__________|
[INFO] [stdout]    |  |__________move occurs because value has type `Cloned<std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |             value moved due to this method call
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `primes`
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:59:26
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 44 |         .map(|a: u64| {
[INFO] [stdout]    |              -------- value moved into closure here
[INFO] [stdout] ...
[INFO] [stdout] 47 |             (&primes.cloned())
[INFO] [stdout]    |               ------ variable moved due to use in closure
[INFO] [stdout] ...
[INFO] [stdout] 59 |     let count_3: u64 = (&primes.cloned())
[INFO] [stdout]    |                          ^^^^^^ value used here after move
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `primes`
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:60:14
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 59 |     let count_3: u64 = (&primes.cloned())
[INFO] [stdout]    |                                 -------- `primes` moved due to this method call
[INFO] [stdout] 60 |         .map(|a: u64| {
[INFO] [stdout]    |              ^^^^^^^^ value used here after move
[INFO] [stdout] ...
[INFO] [stdout] 63 |             primes.cloned()
[INFO] [stdout]    |             ------ use occurs due to use in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 15 previous errors; 11 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0507, E0515.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `euler` due to 16 previous errors; 11 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0515]: cannot return reference to temporary value
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:33:18
[INFO] [stdout]    |
[INFO] [stdout] 33 |         .map(|l| &l.unwrap().parse::<u64>().unwrap());
[INFO] [stdout]    |                  ^----------------------------------
[INFO] [stdout]    |                  ||
[INFO] [stdout]    |                  |temporary value created here
[INFO] [stdout]    |                  returns a reference to data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:47:13
[INFO] [stdout]    |
[INFO] [stdout] 47 | /             (&primes.cloned())
[INFO] [stdout] 48 | |                 .skip_while(|&b| b <= a)
[INFO] [stdout]    | |                  ----------------------^
[INFO] [stdout]    | |__________________|_____________________|
[INFO] [stdout]    |                    |                     move occurs because value has type `Cloned<std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |                    value moved due to this method call
[INFO] [stdout]    |
[INFO] [stdout] note: `skip_while` takes ownership of the receiver `self`, which moves value
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:1124:22
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ captured outer variable
[INFO] [stdout] ...
[INFO] [stdout] 44 |         .map(|a: u64| {
[INFO] [stdout]    |              -------- captured by this `FnMut` closure
[INFO] [stdout] ...
[INFO] [stdout] 47 |             (&primes.cloned())
[INFO] [stdout]    |               ^^^^^^ -------- `primes` moved due to this method call
[INFO] [stdout]    |               |
[INFO] [stdout]    |               move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `std::iter::Iterator::cloned` takes ownership of the receiver `self`, which moves `primes`
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:3279:26
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:51:13
[INFO] [stdout]    |
[INFO] [stdout] 51 | /             (&primes.cloned())
[INFO] [stdout] 52 | |                 .skip_while(|&b| b <= a)
[INFO] [stdout]    | |                  ----------------------^
[INFO] [stdout]    | |__________________|_____________________|
[INFO] [stdout]    |                    |                     move occurs because value has type `Cloned<std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |                    value moved due to this method call
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:51:15
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ captured outer variable
[INFO] [stdout] ...
[INFO] [stdout] 44 |         .map(|a: u64| {
[INFO] [stdout]    |              -------- captured by this `FnMut` closure
[INFO] [stdout] ...
[INFO] [stdout] 51 |             (&primes.cloned())
[INFO] [stdout]    |               ^^^^^^ -------- `primes` moved due to this method call
[INFO] [stdout]    |               |
[INFO] [stdout]    |               move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:66:21
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ captured outer variable
[INFO] [stdout] ...
[INFO] [stdout] 65 |                 .map(|b: u64| {
[INFO] [stdout]    |                      -------- captured by this `FnMut` closure
[INFO] [stdout] 66 |                     primes.cloned()
[INFO] [stdout]    |                     ^^^^^^ -------- `primes` moved due to this method call
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `std::iter::Iterator::cloned` takes ownership of the receiver `self`, which moves `primes`
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:3279:26
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:63:13
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ captured outer variable
[INFO] [stdout] ...
[INFO] [stdout] 60 |         .map(|a: u64| {
[INFO] [stdout]    |              -------- captured by this `FnMut` closure
[INFO] [stdout] ...
[INFO] [stdout] 63 |             primes.cloned()
[INFO] [stdout]    |             ^^^^^^ -------- `primes` moved due to this method call
[INFO] [stdout]    |             |
[INFO] [stdout]    |             move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `std::iter::Iterator::cloned` takes ownership of the receiver `self`, which moves `primes`
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:3279:26
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `primes`, a captured variable in an `FnMut` closure
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:65:22
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ captured outer variable
[INFO] [stdout] ...
[INFO] [stdout] 60 |         .map(|a: u64| {
[INFO] [stdout]    |              -------- captured by this `FnMut` closure
[INFO] [stdout] ...
[INFO] [stdout] 65 |                 .map(|b: u64| {
[INFO] [stdout]    |                      ^^^^^^^^ move out of `primes` occurs here
[INFO] [stdout] 66 |                     primes.cloned()
[INFO] [stdout]    |                     ------
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     variable moved due to use in closure
[INFO] [stdout]    |                     move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:38:24
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let count_1: u64 = (&primes.cloned()).take_while(|&a| a * a * a * a * a * a * a < max)
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^------------------------------------------------
[INFO] [stdout]    |                        |                  |
[INFO] [stdout]    |                        |                  value moved due to this method call
[INFO] [stdout]    |                        move occurs because value has type `Cloned<std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `take_while` takes ownership of the receiver `self`, which moves value
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:1205:22
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:43:24
[INFO] [stdout]    |
[INFO] [stdout] 43 |        let count_2: u64 = (&primes.cloned())
[INFO] [stdout]    |  _________________________^
[INFO] [stdout] 44 | |          .map(|a: u64| {
[INFO] [stdout]    | | __________-
[INFO] [stdout] 45 | ||             println!("2素数:{}", a);
[INFO] [stdout] 46 | ||
[INFO] [stdout] 47 | ||             (&primes.cloned())
[INFO] [stdout] ...  ||
[INFO] [stdout] 54 | ||                 .count() as u64
[INFO] [stdout] 55 | ||         })
[INFO] [stdout]    | ||          ^
[INFO] [stdout]    | ||__________|
[INFO] [stdout]    |  |__________move occurs because value has type `Cloned<std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |             value moved due to this method call
[INFO] [stdout]    |
[INFO] [stdout] note: `std::iter::Iterator::map` takes ownership of the receiver `self`, which moves value
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:777:18
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `primes`
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:43:26
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 38 |     let count_1: u64 = (&primes.cloned()).take_while(|&a| a * a * a * a * a * a * a < max)
[INFO] [stdout]    |                                 -------- `primes` moved due to this method call
[INFO] [stdout] ...
[INFO] [stdout] 43 |     let count_2: u64 = (&primes.cloned())
[INFO] [stdout]    |                          ^^^^^^ value used here after move
[INFO] [stdout]    |
[INFO] [stdout] note: `std::iter::Iterator::cloned` takes ownership of the receiver `self`, which moves `primes`
[INFO] [stdout]   --> /rustc/ebbfb508237d160e7a5e663a930916c87c4a8a45/library/core/src/iter/traits/iterator.rs:3279:26
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `primes`
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 43 |     let count_2: u64 = (&primes.cloned())
[INFO] [stdout]    |                                 -------- `primes` moved due to this method call
[INFO] [stdout] 44 |         .map(|a: u64| {
[INFO] [stdout]    |              ^^^^^^^^ value used here after move
[INFO] [stdout] ...
[INFO] [stdout] 47 |             (&primes.cloned())
[INFO] [stdout]    |               ------ use occurs due to use in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:59:24
[INFO] [stdout]    |
[INFO] [stdout] 59 |        let count_3: u64 = (&primes.cloned())
[INFO] [stdout]    |  _________________________^
[INFO] [stdout] 60 | |          .map(|a: u64| {
[INFO] [stdout]    | | __________-
[INFO] [stdout] 61 | ||             println!("3素数:{}", a);
[INFO] [stdout] 62 | ||
[INFO] [stdout] 63 | ||             primes.cloned()
[INFO] [stdout] ...  ||
[INFO] [stdout] 73 | ||                 .sum::<u64>()
[INFO] [stdout] 74 | ||         })
[INFO] [stdout]    | ||          ^
[INFO] [stdout]    | ||__________|
[INFO] [stdout]    |  |__________move occurs because value has type `Cloned<std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |             value moved due to this method call
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `primes`
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:59:26
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 44 |         .map(|a: u64| {
[INFO] [stdout]    |              -------- value moved into closure here
[INFO] [stdout] ...
[INFO] [stdout] 47 |             (&primes.cloned())
[INFO] [stdout]    |               ------ variable moved due to use in closure
[INFO] [stdout] ...
[INFO] [stdout] 59 |     let count_3: u64 = (&primes.cloned())
[INFO] [stdout]    |                          ^^^^^^ value used here after move
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `primes`
[INFO] [stdout]   --> src/prob501_600/prob501_510/p501.rs:60:14
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let primes = BufReader::new(tmp_file.reopen().unwrap())
[INFO] [stdout]    |         ------ move occurs because `primes` has type `std::iter::Map<std::io::Lines<BufReader<File>>, [closure@src/prob501_600/prob501_510/p501.rs:33:14: 33:17]>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 59 |     let count_3: u64 = (&primes.cloned())
[INFO] [stdout]    |                                 -------- `primes` moved due to this method call
[INFO] [stdout] 60 |         .map(|a: u64| {
[INFO] [stdout]    |              ^^^^^^^^ value used here after move
[INFO] [stdout] ...
[INFO] [stdout] 63 |             primes.cloned()
[INFO] [stdout]    |             ------ use occurs due to use in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 15 previous errors; 11 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0507, E0515.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `euler` due to 16 previous errors; 11 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "501446d4446d4fc955621961270cda57ee1a321d78f786121757a630e90ce830", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "501446d4446d4fc955621961270cda57ee1a321d78f786121757a630e90ce830", kill_on_drop: false }`
[INFO] [stdout] 501446d4446d4fc955621961270cda57ee1a321d78f786121757a630e90ce830
